Static Public Member Functions | |
| XFCIMPORT void | initEventLog () |
| Initializes profiling log. | |
| XFCIMPORT CHAR * | getEventLog () |
| Gets pointer to the profiling log. | |
| XFCIMPORT void | addEvent (const CHAR *aName) |
| Adds an event to the log (name should preferably be 6 characters). | |
| XFCIMPORT void | frameEvent (INT32 aFlags=0) |
| Marks end of an event, calculates framerate and adds it to the list. | |
| XFCIMPORT void | resetEvent (const CHAR *aLastname, const CHAR *aNextname) |
| Resets the event log. | |
| XFCIMPORT void | startSampler (const CHAR *aFilename=XFCSTR("sampler_dump.dat"), INT aStartPaused=0) |
| Starts the sampling profiler. | |
| XFCIMPORT void | pauseSampler () |
| Pauses sampler. | |
| XFCIMPORT void | resumeSampler () |
| Resumes sampler. | |
| XFCIMPORT void | endSampler () |
| Ends sampler. | |
X-Forge Core supports two kinds of profiling: event log profiling and sampling. The event log system works on all platforms; the sampling system currently only works on WinCE.
initEventLog(); // run this first in some initialization function. .. addEvent("somefx1"); // call AddEvent before each event .. addEvent("somefx2"); .. addEvent("somefx3"); .. frameEvent(); // call frameEvent before printing out printOut(GetEventLog()); resetEvent("print ","somefx0"); // reset log .. addEvent("core.."); // call this before ending the render function, or the // last logged event will get the core time as well.
|
|
Adds an event to the log (name should preferably be 6 characters).
|
|
|
Ends sampler.
|
|
|
Marks end of an event, calculates framerate and adds it to the list. The log is printable after this call.
|
|
|
Gets pointer to the profiling log.
|
|
|
Initializes profiling log.
|
|
|
Pauses sampler.
|
|
||||||||||||
|
Resets the event log.
|
|
|
Resumes sampler.
|
|
||||||||||||
|
Starts the sampling profiler.
|
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch | ||